package lab02.test14;
import  java.util.Scanner;
public class Test14 {

   public static void main(String[] args) {

        Scanner sc=new Scanner(System.in);

        Rectangle rectangle=new Rectangle();

        Circle circle=new Circle();

               System.out.println("请输出矩形的边长");

              rectangle.length1=sc.nextDouble();

              rectangle.length2=sc.nextDouble();

           System.out.println("矩形面积为："+rectangle.Getarea());

              System.out.println("请输出圆形半径为");

               circle.R=sc.nextDouble();

               System.out.println("圆形面积为："+circle.Getarea());


                  }



        }
